<html><!--页面顶部-->
			<div id="top">
				<div class="top_content">
					<div class="fl">
						<a href="#">商城首页</a>
						<span>Hi，欢迎来到HM商城！</span>
						<span id="loginOr">请
							<a href="login.php.htm" tppabs="http://www.xunron.cn/cases/hmshop/login.php" class="top_link">登录</a>
							<a href="register.php.htm" tppabs="http://www.xunron.cn/cases/hmshop/register.php" class="top_link">注册</a>
						</span>
					</div>
					<div class="top_right">
						<ul>
							<li><a href="javascript:;">我的订单</a></li>
							<li class="current">
								<a href="javascript:;">买家中心<i></i></a>
								<div class="current_content">
									<p><a href="javascript:;">关注的店铺  29</a></p>
									<p><a href="javascript:;">关注的商品  47</a></p>
								</div>
							</li>
							<li><a href="javascript:;">购物车<span>0</span>件</a></li>
							<li><a href="javascript:;">帮助中心</a></li>
							<li><b></b></li>
							<li class="current">
								<a href="javascript:;"><b class="phone"></b>手机商城<i></i></a>
								<div class="current_content_shop">
									<p><img src="shao-1.png" tppabs="http://www.xunron.cn/cases/hmshop/images/shao.png" /></p>
								</div>
							</li>
							<li><a href="javascript:;">中关村在线</a></li>
							<li><a href="javascript:;">商家入驻<span>0</span>件</a></li>
							<li class="current">
								<a href="javascript:;">联系客服<i></i></a>
								<div class="current_content_kf">
									<p>400-123-0068</p>
								</div>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<!--LOGO/搜索-->
			<div id="head">
				<div class="logo">
					<a href="index.php.htm" tppabs="http://www.xunron.cn/cases/hmshop/index.php"><img src="logo-1.png" tppabs="http://www.xunron.cn/cases/hmshop/images/logo.png" /></a>
					<span>数码在线网上商城</span>
				</div>
				<div class="searchbar">
					<div class="search">
						<form method="post" action="">
							<input type="text" value="" placeholder="输入关键词" name="keywords" />
							<input type="submit" value="搜 索" />
						</form>
					</div>
					<ul class="search_keywords">
						<li><a href="javascript:;">苹果ipone SE</a></li>
						<li><a href="javascript:;">小米5</a></li>
						<li><a href="javascript:;">荣耀7</a></li>
						<li><a href="javascript:;">联想</a></li>
						<li><a href="javascript:;">魅族</a></li>
					</ul>
				</div>
				<div class="ico_h">
					<img src="ico_h-1.jpg" tppabs="http://www.xunron.cn/cases/hmshop/images/ico_h.jpg" />
				</div>
			</div>
			<!--菜单导航-->
			<div class="navbar">
				<h2 class="menu_head">商品分类</h2>
				<ul class="nav">
					<li class="current">
						<div>
							<a href="javascript:;">首页</a>
							<a href="javascript:;" class="under">首页</a>
						</div>
					</li>
					<li>
						<div>
							<a href="javascript:;">Z团</a>
							<a href="javascript:;" class="under">Z团</a>
						</div>
					</li>
					<li>
						<div>
							<a href="javascript:;">手机馆</a>
							<a href="javascript:;" class="under">手机馆</a>
						</div>
					</li>
					<li>
						<div>
							<a href="javascript:;">DIY攒机馆</a>
							<a href="javascript:;" class="under">DIY攒机馆</a>
						</div>
					</li>
					<li>
						<div>
							<a href="javascript:;">限时抢购</a>
							<a href="javascript:;" class="under">限时抢购</a>
						</div>
					</li>
				</ul>
				<a href="javascript:;" class="news_ad">五一狂欢Iphone 6s低至4680元!</a>
			</div>
<script>
	//顶部导航及左侧导航菜单
	$('.top_right li.current').mouseover(function(){
		$(this).children('div').css('display','block');
	});
	$('.top_right li.current').mouseout(function(){
		$(this).children('div').css('display','none');
	});

	//主导航
	$('.nav li').click(function(){
		$(this).addClass('current').siblings().removeClass('current');
	});

	//详情页菜单导航
	if($('.menu').hasClass('hidden')){
		$('http://www.xunron.cn/cases/hmshop/.menu_head,.menu').mouseover(function(){
			$('.menu').removeClass('hidden');
		});
		$('http://www.xunron.cn/cases/hmshop/.menu_head,.menu').mouseout(function(){
			$('.menu').addClass('hidden');
		});
	}
	function getCookie(cookieName){
		var str=document.cookie;
		var i=-1;
		if((i=str.indexOf(cookieName+"="))!=-1){
			var start=i+cookieName.length+1;
			var end=str.indexOf(";",start);
			return str.slice(start,end==-1?str.length:end);
		}
	}

	if(getCookie('userName')&&getCookie('userPwd')){
		var data={'ename':getCookie('userName'),'pwd':getCookie('userPwd')};
		$.get('login_fail.php'/*tpa=http://www.xunron.cn/cases/hmshop/admin/login_fail.php*/,data,function(txt){
			if(txt=='pass'){
				loginOr.innerHTML="<a href='javascript:;' style='color:#c40002'>"+getCookie('userName')+"</a>";
			}
		});
	}
	
</script>
